<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Tender/index')}">招标管理</a></li>
			<if condition="($level eq '0' OR $level eq '1')">
				<li><a href="{:U('Tender/add')}">新增招标文件</a></li>
			</if>
		</ul>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>文件名</th>
					<th>创建人</th>
					<th>创建时间</th>
					<th>修改时间</th>
					<th>文件类型</th>
					<th style="width:80px;">是否发布</th>
					<th width="150">{:L('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="results" item="vo">
				<tr>
					<td>{$vo.file_name}</td>
					<td>{$vo.real_name}</td>
					<td>{$vo.add_time}</td>
					<td>{$vo.last_time}</td>
					<td>{$vo.file_type}</td>
					<!--
					<foreach name="re" item="v">
						<if condition="$v['table_id'] eq $vo['id']">
							<td>{$v.file_name}</td>
						</if>
					</foreach>
					-->
					<td class="text-center">
						<if condition="$vo['is_publish'] eq 1">
							<i class="glyphicon glyphicon-ok text-success"></i>
							<else />
							<i class="glyphicon glyphicon glyphicon-remove text-danger"></i>
						</if>
					</td>
					<td>
						<a href='{:U("Tender/view",array("id"=>$vo["id"]))}'>查看</a>
						<if condition="$vo['is_publish'] eq 0 and ($level eq '0' OR $level eq '1')">
							<a href='{:U("Tender/edit",array("id"=>$vo["id"]))}'>修改</a>
							|						
							<a class="js-ajax-delete" href="{:U('Tender/delete',array('id'=>$vo['id']))}">删除</a>
						</if>

						<if condition="$vo['is_publish'] eq 1 and $level eq '0'">
							|					
							<a class="js-ajax-delete" href="{:U('Tender/delete',array('id'=>$vo['id']))}">删除</a>
						</if>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>